<template>
	<view class="box">
		<view class="top">
			<view class="top-t">物联设备管理</view>
			<view class="content">
				<view class="left">
					<view>总资产（万元）</view>
					<view><b>5163.66</b></view>
					<view><b>设备在线率</b></view>
					<view><b>99%</b></view>
				</view>
				<view class="right">
					<view>设备总台数（台）</view>
					<view><b>3213</b></view>
					<view><b>故障台数</b></view>
					<view><b>8</b></view>
				</view>
			</view>
		</view>
		<view class="nav">
			<view @click="goone">
				<image src="/static/indexicon/settt.png" mode=""></image>
				<text>设备列表</text>
			</view>
			<view @click="gocp">
				<image src="/static/indexicon/Union (25).png" mode=""></image>
				<text>产品管理</text>
			</view>
			<view @click="goxj">
				<image src="/static/indexicon/loo.png" mode=""></image>
				<text>设备巡检</text>
			</view>
			<view @click="gofz">
				<image src="/static/indexicon/and.png" mode=""></image>
				<text>设备分组</text>
			</view>
		</view>
		<view class="lownav">
			<view class="left" @click="gowx">
				<text>设备维修</text>
				<image src="/static/images/settings.png" mode=""></image>
			</view>
			<view class="right" @click="gobj">
				<text>设备报警</text>
				<image src="/static/indexicon/waming.png" mode=""></image>
			</view>
		</view>
		<view class="loking">
			<view class="l-top">
				<view>新片制造第一车间</view>
				<view>切换车间</view>
			</view>
			<view class="cent">
				<view>
					<view>总资产（万元）</view>
					<view>36.5</view>
				</view>
				<view>
					<view>设备台数</view>
					<view>5</view>
				</view>
				<view>
					<view>今日健康率</view>
					<view>90% </view>
				</view>
			</view>
		</view>
		<view class="echarts"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods:{
			goone(){
				uni.navigateTo({
					url:'/pages/sblb/sblb'
				})
			},
			gocp(){
				uni.navigateTo({
					url:'/pages/cpgl/cpgl'
				})
			},
			goxj(){
				uni.navigateTo({
					url:'/pages/sbxj/sbxj'
				})
			},
			gofz(){
				uni.navigateTo({
					url:'/pages/sbfz/sbfz'
				})
			},
			gowx(){
				uni.navigateTo({
					url:'/pages/sbwx/sbwx'
				})
			},
			gobj(){
				uni.navigateTo({
					url:'/pages/sbbj/sbbj'
				})
			}
		}
	}
</script>

<style lang='scss' scoped>
	.box{
		background-color: #d5d5d5;
		min-height: 100vh;
	
	.top {
		background-color: #5479FF;
		color: white;

		.top-t {
			font-size: 45rpx;
			font-weight: bold;
		}

		.content {
			display: flex;
			justify-content: space-between;
			padding: 40rpx;

			.right {
				flex: 1;

				view {
					line-height: 50rpx;
				}
			}

			.left {
				line-height: 50rpx;
				flex: 1;
			}
		}
	}

	.nav {
		background-color: #fff;
		margin: 10rpx;
		border-radius: 10rpx;
		display: flex;
		justify-content: space-around;
		padding: 30rpx 0; 
		text-align: center;

		image {
			width: 80rpx;
			height: 80rpx;
			display: block;
			margin: 0 auto;
			margin-bottom: 20rpx;
		}

		text {
			color: #a7a7a7;
		}

	}

	.lownav {
		background-color: #fff;
		padding: 20rpx 10rpx;
		margin: 10rpx;
		display: flex;
		justify-content: space-around;

		image {
			width: 80rpx;
			height: 80rpx;
			padding-right: 20rpx;
		}

		.left {
			height: 100rpx;
			background: linear-gradient(to bottom, #D6F6F7, #E1F9F8, #E1F8FB);
			border-radius: 10rpx;
			width: 44%;
			display: flex;
			align-items: center;
			justify-content: space-between;

		}

		.right {
			height: 100rpx;
			background: linear-gradient(to bottom, #FAD7DC, #FBE1E7, #FBE3E4);
			border-radius: 10rpx;
			width: 44%;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}

		text {
			font-weight: bold;
			padding-left: 20rpx;
		}
	}
	.loking{
		background-color: #fff;
		padding: 10rpx;
		margin: 10rpx;
		.l-top{
			display: flex;
			justify-content: space-between;
			padding: 10rpx 30rpx;
		}
		.cent{
			display: flex;
			text-align: center;
			justify-content: space-around;
			padding: 20rpx 30rpx;
		}
	}
	}
</style>